<div class="addthis_toolbox">
	<script type="text/javascript">
		var addthis_config = {
			<?php if($this->addthiadvanced): ?>
				<?php if($this->atui_cobrand): ?>
					ui_cobrand: "<?php echo $this->atui_cobrand; ?>",
				<?php endif; ?>
				<?php if($this->atui_508_compliant): ?>
					ui_508_compliant: true,
				<?php endif; ?>
				<?php if($this->atdata_use_flash): ?>
					data_use_flash: false,
				<?php endif; ?>
				<?php if($this->atdata_use_cookies): ?>
					data_use_cookies: false,
				<?php endif; ?>
				<?php if($this->atdata_ga_tracker): ?>
					data_ga_tracker: pageTracker,
				<?php endif; ?>
				<?php if($this->atfcolor): ?>
			     ui_header_color: "#<?php echo $this->atfcolor; ?>",
				<?php endif; ?>
				<?php if($this->atbcolor): ?>
			     ui_header_background: "#<?php echo $this->atbcolor; ?>",
				<?php endif; ?>
				<?php if($this->atclick): ?>
			     ui_click: true,
				<?php endif; ?>
				<?php if($this->atservices_exclude): ?>
			     services_exclude: "<?php echo $this->atservices_exclude; ?>",
				<?php endif; ?>
				<?php if($this->atservices_compact): ?>
			     services_compact: "<?php echo $this->atservices_compact; ?>",
				<?php endif; ?>
				<?php if($this->atservices_expanded): ?>
			     services_expanded: "<?php echo $this->atservices_expanded; ?>",
				<?php endif; ?>
			<?php endif; ?>
				 username: "<?php echo $this->tellafriend_addthisuser; ?>",
				 ui_language: "<?php echo $this->language; ?>"
		}
	</script>
<?php
	$servicesArr = array('email', 'print', 'favorites', 'facebook', 'myspace', 'twitter', 'google', 'blogger', 'buzz', 'ask', 'delicious', 'digg', 'live');
	if($this->atservices_exclude){
		$baz = explode(',', $this->atservices_exclude);
		$servicesArr = array_diff($servicesArr, $baz);
	}
	
	if($this->atservices_expanded){
		$servicesArr = array_merge($servicesArr, explode(',', $this->atservices_expanded));
	}

	if($this->atservices_compact){
		$servicesArr = explode(',', $this->atservices_compact);
	}
?>
<a href="http://www.addthis.com/bookmark.php?v=250&amp;pub=<?php echo $this->tellafriend_addthisuser; ?>" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<?php foreach($servicesArr as $service):?>
	<a class="addthis_button_<?php echo $service; ?>"></a>
<?php endforeach; ?>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=<?php echo $this->tellafriend_addthisuser; ?>"></script>